package com.xiaoxing.zhinenghuacangku_liaocheng.di.module;

import com.jess.arms.di.scope.ActivityScope;
import com.xiaoxing.zhinenghuacangku_liaocheng.mvp.contract.LiaoCheng_ReturnLibraryMenuContract;
import com.xiaoxing.zhinenghuacangku_liaocheng.mvp.model.LiaoCheng_ReturnLibraryMenuModel;

import dagger.Module;
import dagger.Provides;


@Module
public class LiaoCheng_ReturnLibraryMenuModule {
    private LiaoCheng_ReturnLibraryMenuContract.View view;

    /**
     * 构建ReturnLibraryMenuModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public LiaoCheng_ReturnLibraryMenuModule(LiaoCheng_ReturnLibraryMenuContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    LiaoCheng_ReturnLibraryMenuContract.View provideReturnLibraryMenuView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    LiaoCheng_ReturnLibraryMenuContract.Model provideReturnLibraryMenuModel(LiaoCheng_ReturnLibraryMenuModel model) {
        return model;
    }
}